package net.oschina.dajiangnan.tree.demo;

import net.oschina.dajiangnan.tree.CommonNode;
//校验x.id的节点实现
public class CommonVerifyId extends CommonNode<X> {
    @Override
    protected void processBusiness(X x) throws Exception {
        try {
            Integer.parseInt(x.getId());
        } catch (NumberFormatException e) {
            throw new Exception("x.id illegal");
        }
    }
}
